package net.dotool;

/**
 * 异常处理
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com 2017年10月27日 下午3:38:16
 * 
 */
public class DoToolException extends RuntimeException {
	/**
	 */
	private static final long serialVersionUID = 1L;

	public DoToolException(Throwable e) {
		super(e.getMessage(), e);
	}

	public DoToolException(String txt) {
		super(txt);
	}

	public DoToolException(String msg, Object... params) {
		super(StringTools.format(msg, params));
	}

	public DoToolException(String message, Throwable throwable) {
		super(message, throwable);
	}

	public DoToolException(Throwable throwable, String messageTemplate, Object... params) {
		super(StringTools.format(messageTemplate, params), throwable);
	}
}
